﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace testWindowsFormsStyle
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void test()
        {
            MessageBox.Show("fa");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //this.tabControl1
            TabPage tp = new TabPage("abc");
            //this.tabPage5.Click += new System.EventHandler(this.tabPage5_Click);
            //tp.Click += new System.EventHandler(tabPage5_Click);
            this.tabControl1.Controls.Add(tp);
        }

        private void tabPage5_Click(object sender, EventArgs e)
        {

        }

        private void tabControl1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("fa");
        }

        private void tabPage3_Enter(object sender, EventArgs e)
        {
            MessageBox.Show("enter");
        }
    }
}
